#ifndef DATA_RECIEVE_H
#define DATA_RECIEVE_H

#include "main.h"
#ifdef __cplusplus
extern "C"
{
#endif
typedef struct//
{
	int16_t target_set;
	int16_t X_d;
	int16_t Y_d;
	int16_t fire;
}VIEW_RX_pakect_T;

extern VIEW_RX_pakect_T view_data;

void DATA_Recieve_Init(void);
void DATA_DMA_Recieve_init(uint8_t *rx1_buf, uint8_t *rx2_buf, uint16_t dma_buf_num);
void DATA_RX_deal(volatile const uint8_t *view_rx_buf);
#ifdef __cplusplus
}
#endif
#endif
